package com.hui.stock.mapper;

import com.hui.stock.pojo.domain.StockBusinessDomain;
import com.hui.stock.pojo.entity.StockBusiness;
import com.hui.stock.pojo.entity.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author ymh
* @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
* @createDate 2024-11-11 16:04:25
* @Entity com.hui.stock.pojo.entity.StockBusiness
*/
public interface StockBusinessMapper {

    int deleteByPrimaryKey(String id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);

    /**
     * 获取个股编码列表（从stock_business表）
     * @return
     */
    List<String> getAllStockCodes();

    /**
     * 根据编码获取股票主营业务领域对象
     * @param code 股票编码
     * @return
     */
    StockBusinessDomain getStockBusiness(@Param("code") String code);
}
